package com.momo.utils;

import org.apache.shiro.crypto.hash.Md5Hash;

/**
 * @Description: 统一密码加密工具类
 */
public class Encrypt {

	/**
	 * @Description: 获取加盐并且循环多次散列值的密码
	 */
	public static String getShiroPassword(String password, String salt, int hashCount) {
		return new Md5Hash(password, salt, hashCount).toString();
	}
	public  static void main(String[] args){
		System.out.println(getShiroPassword("123456","momo",2));
	}
}
